<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] GCF::MapToObject&lt; T &gt; Class Template Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GCF</b></li><li class="navelem"><a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_g_c_f_1_1_map_to_object-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCF::MapToObject&lt; T &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__gcf__core.html">GCF Core Module</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This class manages a map of &lt;T&gt;-QObject pairs. &lt;T&gt; is a template class.  
 <a href="class_g_c_f_1_1_map_to_object.html#details">More...</a></p>

<p><code>#include &lt;GCF3/MapToObject&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a377f6f4a599700d41bd7340da6c06a38"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a377f6f4a599700d41bd7340da6c06a38">MapToObject</a> ()</td></tr>
<tr class="separator:a377f6f4a599700d41bd7340da6c06a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1bba7b20e6705b7b1121918b409ba94"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#aa1bba7b20e6705b7b1121918b409ba94">MapToObject</a> (const <a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> &amp;other)</td></tr>
<tr class="separator:aa1bba7b20e6705b7b1121918b409ba94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1991c79b5c1a3aa257d2338c2439507"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#af1991c79b5c1a3aa257d2338c2439507">MapToObject</a> (const QMap&lt; T, QObject * &gt; &amp;<a class="el" href="class_g_c_f_1_1_map_to_object.html#a5aff2532250b9c97cc45a4a7e7912fd6">map</a>)</td></tr>
<tr class="separator:af1991c79b5c1a3aa257d2338c2439507"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cb900d416d1f3aa1e5cd72d061182e1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a0cb900d416d1f3aa1e5cd72d061182e1">~MapToObject</a> ()</td></tr>
<tr class="separator:a0cb900d416d1f3aa1e5cd72d061182e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4c601a0108223153568aefccae66bfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#aa4c601a0108223153568aefccae66bfd">setEventListener</a> (<a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html">MapToObjectEventListener</a> *listener)</td></tr>
<tr class="separator:aa4c601a0108223153568aefccae66bfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a551264864a7a58ead0ebe01067653685"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html">MapToObjectEventListener</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a551264864a7a58ead0ebe01067653685">eventListener</a> () const</td></tr>
<tr class="separator:a551264864a7a58ead0ebe01067653685"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d5bc349b692bd23d77c38c65734afb7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a8d5bc349b692bd23d77c38c65734afb7">operator=</a> (const <a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> &amp;other)</td></tr>
<tr class="separator:a8d5bc349b692bd23d77c38c65734afb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49742ade2d0f0038b6bd7a222b711fcd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a49742ade2d0f0038b6bd7a222b711fcd">insert</a> (const T &amp;<a class="el" href="class_g_c_f_1_1_map_to_object.html#ac74789c6ef6cbad6db5580ea4e05dac2">value</a>, QObject *object)</td></tr>
<tr class="separator:a49742ade2d0f0038b6bd7a222b711fcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3ef607118add47b56780cae763c6447"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#aa3ef607118add47b56780cae763c6447">remove</a> (const T &amp;<a class="el" href="class_g_c_f_1_1_map_to_object.html#ac74789c6ef6cbad6db5580ea4e05dac2">value</a>)</td></tr>
<tr class="separator:aa3ef607118add47b56780cae763c6447"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4768b0c17387929755552c22af3cb02e"><td class="memItemLeft" align="right" valign="top">QObject *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a4768b0c17387929755552c22af3cb02e">operator[]</a> (const T &amp;<a class="el" href="class_g_c_f_1_1_map_to_object.html#ac74789c6ef6cbad6db5580ea4e05dac2">value</a>) const</td></tr>
<tr class="separator:a4768b0c17387929755552c22af3cb02e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a985634a4b1a04a45b9c22efca42652c7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a985634a4b1a04a45b9c22efca42652c7">count</a> () const</td></tr>
<tr class="separator:a985634a4b1a04a45b9c22efca42652c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f1b5b50f72c7952f8b923565fa325e8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a9f1b5b50f72c7952f8b923565fa325e8">isEmpty</a> () const</td></tr>
<tr class="separator:a9f1b5b50f72c7952f8b923565fa325e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245178128c705fc312c79a41bb60ce3f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a245178128c705fc312c79a41bb60ce3f">contains</a> (const T &amp;<a class="el" href="class_g_c_f_1_1_map_to_object.html#ac74789c6ef6cbad6db5580ea4e05dac2">value</a>) const</td></tr>
<tr class="separator:a245178128c705fc312c79a41bb60ce3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac74789c6ef6cbad6db5580ea4e05dac2"><td class="memItemLeft" align="right" valign="top">QObject *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#ac74789c6ef6cbad6db5580ea4e05dac2">value</a> (const T &amp;key) const</td></tr>
<tr class="separator:ac74789c6ef6cbad6db5580ea4e05dac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53cdd44beee77fb64c47bcd2747dcbba"><td class="memItemLeft" align="right" valign="top">QList&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a53cdd44beee77fb64c47bcd2747dcbba">keys</a> () const</td></tr>
<tr class="separator:a53cdd44beee77fb64c47bcd2747dcbba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a591477ad08ca0b0aa731d20794a5f6e5"><td class="memItemLeft" align="right" valign="top">QObjectList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a591477ad08ca0b0aa731d20794a5f6e5">values</a> () const</td></tr>
<tr class="separator:a591477ad08ca0b0aa731d20794a5f6e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bd9d6483c9dbda0c497800021be10c4"><td class="memItemLeft" align="right" valign="top">QMap&lt; T, QObject * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a8bd9d6483c9dbda0c497800021be10c4">toMap</a> () const</td></tr>
<tr class="separator:a8bd9d6483c9dbda0c497800021be10c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5aff2532250b9c97cc45a4a7e7912fd6"><td class="memItemLeft" align="right" valign="top">const QMap&lt; T, QObject * &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a5aff2532250b9c97cc45a4a7e7912fd6">map</a> () const</td></tr>
<tr class="separator:a5aff2532250b9c97cc45a4a7e7912fd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a314ef19fdd56b28fa23596ff0fe0b8f2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#a314ef19fdd56b28fa23596ff0fe0b8f2">removeAll</a> ()</td></tr>
<tr class="separator:a314ef19fdd56b28fa23596ff0fe0b8f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4327824a7cf7cac4f92092fdcac9614"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_map_to_object.html#af4327824a7cf7cac4f92092fdcac9614">deleteAll</a> ()</td></tr>
<tr class="separator:af4327824a7cf7cac4f92092fdcac9614"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_g_c_f_1_1_object_list_event_listener"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_g_c_f_1_1_object_list_event_listener')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_g_c_f_1_1_object_list_event_listener.html">GCF::ObjectListEventListener</a></td></tr>
<tr class="memitem:a8ff90650697e04bcd773eca37f1b620d inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_list_event_listener.html#a8ff90650697e04bcd773eca37f1b620d">ObjectListEventListener</a> ()</td></tr>
<tr class="separator:a8ff90650697e04bcd773eca37f1b620d inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8080a35f89335f9fef396c1af95849e inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_list_event_listener.html#ad8080a35f89335f9fef396c1af95849e">~ObjectListEventListener</a> ()</td></tr>
<tr class="separator:ad8080a35f89335f9fef396c1af95849e inherit pub_methods_class_g_c_f_1_1_object_list_event_listener"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class GCF::MapToObject&lt; T &gt;</h3>

<p>This class can be used as a replacement for <code>QMap&lt;T, QObject*&gt;</code>, when you want Value versus valid pointers to <code>QObject</code> to be stored in the map. This class automatically notifies and removes Value - invalid <code>QObject</code> pairs, as and when the object pointers inside <code><a class="el" href="class_g_c_f_1_1_map_to_object.html" title="This class manages a map of &lt;T&gt;-QObject pairs. &lt;T&gt; is a template class.">MapToObject</a></code> are deleted elsewhere in the application.</p>
<p>Three types of events can happen on <a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a> </p><ul>
<li>A <code>Value</code> - <code>QObject</code> pointer pair got added to the map. </li>
<li>A <code>Value</code> - <code>QObject</code> pointer - got removed from the map. </li>
<li>A <code>QObject</code> pointer in Value - <code>QObject</code> pair's ,got deleted.</li>
</ul>
<p>You can listen to this class by setting <a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html">GCF::MapToObjectEventListener</a> using <a class="el" href="class_g_c_f_1_1_map_to_object.html#aa4c601a0108223153568aefccae66bfd">setEventListener(MapToObjectEventListener *listener)</a> method. When a new Value - <code>QObject</code> pointer pair is inserted or removed from the <code><a class="el" href="class_g_c_f_1_1_map_to_object.html" title="This class manages a map of &lt;T&gt;-QObject pairs. &lt;T&gt; is a template class.">MapToObject</a></code>, <code><a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html" title="This listens to GCF::MapToObject&#39;s events.">MapToObjectEventListener</a></code> will notify it.</p>
<p>If you want to have several listeners receive event notifications on an object map, then you can install a <a class="el" href="class_g_c_f_1_1_map_to_object_event_broadcaster.html">GCF::MapToObjectEventBroadcaster</a> on the object map and register all event listeners with the broadcaster. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a377f6f4a599700d41bd7340da6c06a38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a377f6f4a599700d41bd7340da6c06a38">&#9670;&nbsp;</a></span>MapToObject() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::<a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. </p>

</div>
</div>
<a id="aa1bba7b20e6705b7b1121918b409ba94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1bba7b20e6705b7b1121918b409ba94">&#9670;&nbsp;</a></span>MapToObject() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::<a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor. <code><a class="el" href="class_g_c_f_1_1_map_to_object.html" title="This class manages a map of &lt;T&gt;-QObject pairs. &lt;T&gt; is a template class.">MapToObject</a></code> does not copy the <a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html">GCF::MapToObjectEventListener</a> that is currently set on the other <a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> from which value-objects pairs will be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af1991c79b5c1a3aa257d2338c2439507"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1991c79b5c1a3aa257d2338c2439507">&#9670;&nbsp;</a></span>MapToObject() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::<a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> </td>
          <td>(</td>
          <td class="paramtype">const QMap&lt; T, QObject * &gt; &amp;&#160;</td>
          <td class="paramname"><em>map</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copies the value-object pairs from QMap&lt;T,QObject*&gt;&amp; map to this. </p>

</div>
</div>
<a id="a0cb900d416d1f3aa1e5cd72d061182e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cb900d416d1f3aa1e5cd72d061182e1">&#9670;&nbsp;</a></span>~MapToObject()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::~<a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa4c601a0108223153568aefccae66bfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4c601a0108223153568aefccae66bfd">&#9670;&nbsp;</a></span>setEventListener()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::setEventListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html">MapToObjectEventListener</a> *&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets an event listener on the this. If there was a already an event listener set then it will be replaced with the new one.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">listener</td><td>the <a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html">GCF::MapToObjectEventListener</a> which needs to be set as event listener. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a551264864a7a58ead0ebe01067653685"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a551264864a7a58ead0ebe01067653685">&#9670;&nbsp;</a></span>eventListener()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::eventListener </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>currently set event listener on this. </dd></dl>

</div>
</div>
<a id="a8d5bc349b692bd23d77c38c65734afb7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d5bc349b692bd23d77c38c65734afb7">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Overloaded equal to operator. It copies everything from <a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a> except the <a class="el" href="class_g_c_f_1_1_map_to_object_event_listener.html" title="This listens to GCF::MapToObject&#39;s events.">GCF::MapToObjectEventListener</a> that is currently set on 'other' <a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td><a class="el" href="class_g_c_f_1_1_map_to_object.html">MapToObject</a> from which value-objects pairs will be copied. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a49742ade2d0f0038b6bd7a222b711fcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49742ade2d0f0038b6bd7a222b711fcd">&#9670;&nbsp;</a></span>insert()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::insert </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>object</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inserts the Value - <code>QObject</code> pointer pair into the map.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>template class value which needs to be inserted into the map </td></tr>
    <tr><td class="paramname">object</td><td><code>QObject</code> pointer which needs to be inserted into the map against value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa3ef607118add47b56780cae763c6447"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3ef607118add47b56780cae763c6447">&#9670;&nbsp;</a></span>remove()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::remove </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes the Value - <code>QObject</code> pointer pair from the map.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>template class value which needs to be removed from the map. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4768b0c17387929755552c22af3cb02e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4768b0c17387929755552c22af3cb02e">&#9670;&nbsp;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns <code>QObject</code> pointer for value existing in the map. You have to make sure that the value exists in the map before calling this function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>template class value for which <code>QObject</code> pointer needs to be returned from the map. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>QObject</code> pointer stored against value. </dd></dl>

</div>
</div>
<a id="a985634a4b1a04a45b9c22efca42652c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a985634a4b1a04a45b9c22efca42652c7">&#9670;&nbsp;</a></span>count()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the map object count. </dd></dl>

</div>
</div>
<a id="a9f1b5b50f72c7952f8b923565fa325e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f1b5b50f72c7952f8b923565fa325e8">&#9670;&nbsp;</a></span>isEmpty()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::isEmpty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the map is empty otherwise false. </dd></dl>

</div>
</div>
<a id="a245178128c705fc312c79a41bb60ce3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a245178128c705fc312c79a41bb60ce3f">&#9670;&nbsp;</a></span>contains()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::contains </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the map contains the value otherwise false. </dd></dl>

</div>
</div>
<a id="ac74789c6ef6cbad6db5580ea4e05dac2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac74789c6ef6cbad6db5580ea4e05dac2">&#9670;&nbsp;</a></span>value()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::value </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>key</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd><code>QObject</code> pointer stored against template class value 'key' in the map. </dd></dl>

</div>
</div>
<a id="a53cdd44beee77fb64c47bcd2747dcbba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53cdd44beee77fb64c47bcd2747dcbba">&#9670;&nbsp;</a></span>keys()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::keys </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns keys of map. Since <a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a> stores Template class value versus <code>QObject</code> pointer, <a class="el" href="class_g_c_f_1_1_map_to_object.html#a53cdd44beee77fb64c47bcd2747dcbba">keys()</a> will return <code>QList&lt;T&gt;</code>.</p>
<dl class="section return"><dt>Returns</dt><dd><code>QList&lt;T&gt;</code> of all template class values stored as keys. </dd></dl>

</div>
</div>
<a id="a591477ad08ca0b0aa731d20794a5f6e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a591477ad08ca0b0aa731d20794a5f6e5">&#9670;&nbsp;</a></span>values()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::values </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns list of <code>QObject</code> pointers stored in the map. Since <a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a> stores <code>QObject</code> pointer versus Template class value, <a class="el" href="class_g_c_f_1_1_map_to_object.html#ac74789c6ef6cbad6db5580ea4e05dac2">value()</a> will return <code>QList&lt;T&gt;</code>.</p>
<dl class="section return"><dt>Returns</dt><dd><code>QObjectList</code> of <code>QObject</code> pointers stored as values of map. </dd></dl>

</div>
</div>
<a id="a8bd9d6483c9dbda0c497800021be10c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bd9d6483c9dbda0c497800021be10c4">&#9670;&nbsp;</a></span>toMap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::toMap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>stored template class value - <code>QObject</code> pointer pairs as <code>QMap&lt;T,QObject*&gt;</code>. </dd></dl>

</div>
</div>
<a id="a5aff2532250b9c97cc45a4a7e7912fd6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5aff2532250b9c97cc45a4a7e7912fd6">&#9670;&nbsp;</a></span>map()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::map </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>constant reference to template class value - <code>QObject</code> pointer map. </dd></dl>

</div>
</div>
<a id="a314ef19fdd56b28fa23596ff0fe0b8f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a314ef19fdd56b28fa23596ff0fe0b8f2">&#9670;&nbsp;</a></span>removeAll()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::removeAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Removes all template class value - <code>QObject</code> pointer stored in this map. </p>

</div>
</div>
<a id="af4327824a7cf7cac4f92092fdcac9614"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4327824a7cf7cac4f92092fdcac9614">&#9670;&nbsp;</a></span>deleteAll()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_g_c_f_1_1_map_to_object.html">GCF::MapToObject</a>&lt; T &gt;::deleteAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Deletes all <code>QObject</code> pointer stored in this map and removes the value stored in this map. </p>

</div>
</div>
</div><!-- contents -->
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
